package com.ruoyi.manager.properties;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "ry.jwt")
public class JwtProperties {


    /**
     * 用户端微信用户生成jwt令牌相关配置
     */
    @Value("${ry.jwt.user-secret-key}")
    private String userSecretKey;
    @Value("${ry.jwt.user-ttl}")
    private long userTtl;
    @Value("${ry.jwt.user-token-name}")
    private String userTokenName;



    public String getUserSecretKey() {
        return userSecretKey;
    }

    public void setUserSecretKey(String userSecretKey) {
        this.userSecretKey = userSecretKey;
    }

    public long getUserTtl() {
        return userTtl;
    }

    public void setUserTtl(long userTtl) {
        this.userTtl = userTtl;
    }

    public String getUserTokenName() {
        return userTokenName;
    }

    public void setUserTokenName(String userTokenName) {
        this.userTokenName = userTokenName;
    }
}
